@if($title || $tools)
<div class="box-header with-border" style="padding: .65rem 1rem">
    <h3 class="box-title" style="line-height:30px;">{!! $title !!}</h3>
    <div class="pull-right">{!! $tools !!}</div>
</div>
@endif
<div class="box-body">
    <div class="form-horizontal mt-1">
        @if($rows->isEmpty())
            @foreach($fields as $field)
                {!! $field->render() !!}
            @endforeach
        @else
            <div>
                @if (isset($blocks) && count($blocks) > 0)
                    @foreach($blocks as $block)
                        <div class="show-card">
                            <div class="show-card-header">
                                <div class="t1">{{ $block['title'] }}</div>
                            </div>
                            <div class="show-card-content">
                                @foreach($block['rows'] as $row)
                                    {!! $row->render() !!}
                                @endforeach
                            </div>
                        </div>
                    @endforeach
                @else
                    @foreach($rows as $row)
                        {!! $row->render() !!}
                    @endforeach
                @endif
            </div>
        @endif
        <div class="clearfix"></div>
    </div>
</div>
